package com.xgc.common.config;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量定义
 */
public class Constan {
    // 管理员
    String ADMIN_USER = "admin";

    // 销售单打印状态
    public static final String SELL_ORDER_STATUS_1000 = "1000";// 未打印
    public static final String SELL_ORDER_STATUS_1001 = "1100";// 已打印
    public static final Map<String,String> SELL_ORDER_STATUS_MAP = new HashMap<>();
    static {
        SELL_ORDER_STATUS_MAP.put(SELL_ORDER_STATUS_1000, "未打印");
        SELL_ORDER_STATUS_MAP.put(SELL_ORDER_STATUS_1001, "已打印");
    }

    /********************* 审批流程 *************************/
    /**
     * 1.保存
     * 2.提交
     * 3.审批（财务）
     * 4.审批（仓库）
     *
     */
    public static final String STATUS_1000 = "1000";// 生效
    public static final String STATUS_1001 = "1001";// 无效
    public static final String STATUS_1002 = "1002";// （财务）审批通过
    public static final String STATUS_1003 = "1003";// （财务）审批不通过
    public static final String STATUS_1004 = "1004";// （仓库）确认通过
    public static final String STATUS_1005 = "1005";// （仓库）确认不通过

    public static final Map<String,String> ORDER_STATUS_MAP = new HashMap<>();
    static {
        ORDER_STATUS_MAP.put(STATUS_1000,"生效");
        ORDER_STATUS_MAP.put(STATUS_1001,"无效");
        ORDER_STATUS_MAP.put(STATUS_1002,"（财务）审批通过");
        ORDER_STATUS_MAP.put(STATUS_1003,"（财务）审批不通过");
        ORDER_STATUS_MAP.put(STATUS_1004,"（仓库）确认通过");
        ORDER_STATUS_MAP.put(STATUS_1005,"（仓库）确认不通过");
    }

    /********************** 是否含发票 *********************************/
    public static final String CONTAIN_BILL_YES = "1";// 含发票
    public static final String CONTAIN_BILL_NO = "0";// 不含发票

    public static final Map<String,String> ORDER_CONTAIN_BILL_MAP = new HashMap<>();
    static {
        ORDER_CONTAIN_BILL_MAP.put(CONTAIN_BILL_YES,"是");
        ORDER_CONTAIN_BILL_MAP.put(CONTAIN_BILL_NO,"否");
    }
    /********************** 结账方式 *********************************/
    public static final String ORDER_SETTlE_WAY_MONTH = "1";// 月结
    public static final String ORDER_SETTLE_WAY_NOW = "0"; // 现结

    public static final Map<String,String> ORDER_SETTLE_WAY_MAP = new HashMap<>();
    static {
        ORDER_SETTLE_WAY_MAP.put(ORDER_SETTlE_WAY_MONTH,"月结");
        ORDER_SETTLE_WAY_MAP.put(ORDER_SETTLE_WAY_NOW,"现结");
    }

    /********************** 运费类型 *********************************/
    public static final String ORDER_CARRIAGE_TYPE_0 = "0";// 到付
    public static final String ORDER_CARRIAGE_TYPE_1 = "1";// 现付
    public static final String ORDER_CARRIAGE_TYPE_2 = "2";// 月结
    public static final Map<String,String> ORDER_CARRIAGE_TYPE_MAP = new HashMap<>();
    static {
        ORDER_CARRIAGE_TYPE_MAP.put(ORDER_CARRIAGE_TYPE_0,"到付");
        ORDER_CARRIAGE_TYPE_MAP.put(ORDER_CARRIAGE_TYPE_1,"现付");
        ORDER_CARRIAGE_TYPE_MAP.put(ORDER_CARRIAGE_TYPE_2,"月结");
    }

    /********************** 付款账单状态 *********************************/
    public static final String OUTCOME_STATUS_1000 = "1000";// 未付款
    public static final String OUTCOME_STATUS_1001 = "1001";// 已付款
    public static final String OUTCOME_STATUS_1002 = "1002";// 已回款（采购退货，供应商退款）

    /*********************** 收款账单状态 ****************************************/
    public static final String INCOME_STATUS_1000 = "1000";// 未收款
    public static final String INCOME_STATUS_1001 = "1001";// 已收款
    public static final String INCOME_STATUS_1002 = "1002";// 已退款（销售退货，退款给客户）

    /*********************** 主键序列 ********************************************/
    public static final String SEQ_PURCHASE_ORDER = "SEQ_PURCHASE_ORDER";// 采购单
    public static final String SEQ_PURCHASE_DETAIL = "SEQ_PURCHASE_DETAIL";// 采购单明细
    public static final String SEQ_OUTCOME_DETAIL = "SEQ_OUTCOME_DETAIL";// 支出明细
    public static final String SEQ_ENTITY = "SEQ_ENTITY";// 物品
    public static final String SEQ_CUSTOMER = "SEQ_CUSTOMER";// 客户
    public static final String SEQ_SUPPLIER = "SEQ_SUPPLIER";// 供应商
    public static final String SEQ_SELL_ORDER = "SEQ_SELL_ORDER";// 销售单
    public static final String SEQ_SELL_DETAIL = "SEQ_SELL_DETAIL";// 销售单明细
    public static final String SEQ_INCOME_DETAIL = "SEQ_INCOME_DETAIL";// 收入明细
    public static final String SEQ_PAYMENT_WAY = "SEQ_PAYMENT_WAY";// 支付方式
    public static final String SEQ_ENTITY_IMG = "SEQ_ENTITY_IMG";// 物品图片
    public static final String SEQ_ORDER_EVENT = "SEQ_ORDER_EVENT";// 订单流水
    public static final String SEQ_PRODUCE_ORDER = "SEQ_PRODUCE_ORDER";// 生产订单
    public static final String SEQ_PRODUCE_DETAIL = "SEQ_PRODUCE_DETAIL";// 生产订单明细
    public static final String SEQ_WASTE_ORDER = "SEQ_WASTE_ORDER";// 作废订单
    public static final String SEQ_WASTE_DETAIL = "SEQ_WASTE_DETAIL";// 作废订单明细


}